﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YWTSSys.BLL;
using YWTSSys.Library;
using YWTSSys.Model;

namespace YWTSSys.Web.MachineSys.SysBasic
{
    public partial class OUserList : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.修改, Permission.新增, Permission.删除 };
            }
        }
        protected override string DWZRef
        {
            get
            {
                return "OUserList";
                
            }
        }

        #region 属性 (查询条件)


        protected string RealName
        {
            get
            {
                return GetRequestValue<string>("RealName");

            }
        }
        protected override string orderField
        {
            get
            {
                return string.IsNullOrEmpty(base.orderField) ? "UserId" : base.orderField;
            }
        }
        protected override string orderDirection
        {
            get
            {
                return string.IsNullOrEmpty(base.orderDirection) ? "desc" : base.orderDirection;
            }
        }

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
        }

        protected void DataBind()
        {
            this.rpMenu.DataSource = OUserController.GetPagination(RealName, "", 1, pageNum, numPerPage, SQLSort, ref TotalCount);
            this.rpMenu.DataBind();
        }
    }
}